﻿{% load static %}
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="{% static 'novel/img/222.jpg' %}">

    <title>搜索结果</title>

    <!-- Bootstrap 核心CSS文件 -->
    <link href="{% static 'novel/css/bootstrap.min.css' %}" rel="stylesheet">
    <script type="text/javascript" src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
    <style type="text/css">
	    body{
	          background: url("{% static 'novel/img/110.jpg' %}") no-repeat center;
	          background-size: cover;
	          width: 100%;
	    }
        #gs{
        	text-align: center;
            font-size: 32px;
            color: #337ab7;
            display: inline-block;
        	margin: 100px 0px;
        }
   		.novel_gs b{
   			width: 250px;
   			display: inline-block;
   		}
   		hr{
   			border-style: solid;
   			border-color: #000; 			   			
   		}
   		h4{
   			display: inline-block;
   			color: #337ab7;
   		}
   		/*a{
   			background-color: #FFFAFA;
   		}*/   		
   		a:hover{
            text-decoration: none;
            color: red;
        }
        
    </style>
<body>
	 <div class="container">
    	<div class="row">
        	<div class="col-md-2">
        	</div>
        	<div class="col-md-8">
        		<center>
	        		<span id="gs" class="form-signin-heading"><b>羽毛小说</b></span>
	        	</center>
    			<form class="form-signin novel_gs" action="" method="post">
        			{% csrf_token %}
        			<table>
		        		{%for book_name,value in info.items%}
		        			<tr>
								<b><big>书名:<h4>《{{book_name}}》</h4><br>
								作者：{{value.author}}<br>
								连载状态：{{value.statu}}<br>
								<a href="{{value.url}}">在线阅读</a>
								<span>|</span>
								<a href="{{value.url}}download" download="{{book_name}}.txt" onclick="downLoad()">下载TXT</a>
								<hr><br>
								</big></b>
							</tr>
						{%endfor%}
					</table>
                </form>               
        	</div>
        	<div class="col-md-2">
        	</div>
        </div>
    </div>
   
    <script type="text/javascript">
  		function downLoad() {
  			swal({ 
				  title: "下载", 
				  text: "正在下载",
				  imageUrl: "{% static 'novel/img/1.gif' %}"
				});
  		}
    </script>
    <!-- jquery部分： -->
    <script type="text/javascript" src="{% static 'novel/js/jquery-3.3.1.min.js' %}"></script>
    <!-- Bootstrap部分： -->
    <script type="text/javascript" src="{% static 'novel/js/bootstrap.min.js' %}"></script>   
 </body>
</html>
